﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MODEL;

namespace Service
{
    public class ElementService_Design : IElementService
    {
        public Task<IEnumerable<ElementInfo>> GetElementsAsync()
        {
            return Task.Run(() =>
            {
                return new List<ElementInfo> {
                    new ElementInfo{
                        Id = 1,
                        ElementName = "TestElment",
                        ElementCode = "123456",
                        StationType = "大监站",
                        InsertEnable = 1
                    }
                }.AsEnumerable();
            });
        }

        public Task<IEnumerable<ElementInfo>> QueryElementsAsync(string stationType)
        {
            return Task.Run(() =>
            {
                return new List<ElementInfo> {
                    new ElementInfo{
                        Id = 1,
                        ElementName = "TestElment",
                        ElementCode = "123456",
                        StationType = "大监站",
                        InsertEnable = 1
                    }
                }.AsEnumerable();
            });
        }

        public Task<int> InsertElementInfoAsync(ElementInfo element)
        {
            throw new NotImplementedException();
        }

        public Task<int> DeleteElementInfoAsync(List<int> elementIds)
        {
            throw new NotImplementedException();
        }
    }
}
